const files = require.context('./modules/', true, /\.js$/)
export default files.keys().reduce((mod, path) => {
  const name = path.replace(/\.\/(\S+)\.js$/, '$1')
  mod[name] = files(path).default
  return mod
}, {})
